package com.example.mongodb.springbootmongodb.po;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: yushizhong
 * @date: 2022-06-30 15:20
 * @version: 1.0
 **/
@Data
@Document(collection = "teacher")
public class Teacher {
    @Id
    private Long id;
    private String name;
    private String sex;
    private Integer age;
}
